﻿@model List<KRM.Core.vQuestionnaire>
@{
    ViewBag.Title = "View Questionnaire";
    Layout = "~/Views/Shared/_PopupLayout.cshtml";
}

<div style="padding: 20px;">
    <table class="table table-hover table-bordered table-fix dataTable dataTable-scroll-x">
        <thead>
            <tr>
                <th>View</th>
                <th>QuestionnaireID</th>
                <th>OrderRef</th>
                <th>OrderItemID</th>
                <th>Status</th>
                <th>UsernameUpdated</th>
                <th>LastUpdated</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td><a href="/rdm/@(item.IsFAC51CheckList == true ? "questionnaireform" : "questionnairenonfac")/@item.ID?orderref=@item.OrderRef">Continue questionnaire</a></td>
                    <td>@item.ID</td>
                    <td>@item.OrderRef</td>
                    <td>@item.OrderItemID</td>
                    <td>@item.Status</td>
                    <td>@item.UserNameUpdated</td>
                    <td>@item.LastUpdated</td>
                </tr>
            }
        </tbody>
    </table>
</div>
